<?php
define('VERSION', '4.0.1');
define('DS', DIRECTORY_SEPARATOR);
define('ROOT', dirname(__FILE__) . DS);
define('CLASS_DIR', ROOT.'class'.DS);
// define('IMGCACHE_DIR', ROOT.'imgcache'.DS);
// define('LAYOUTS_DIR', ROOT.'views'.DS.'layouts'.DS);
include_once('config.php');
session_start();
$GLOBALS['lang'] = !empty($_GET['lang'])?$_GET['lang']:1;
include_once(CLASS_DIR.'UrlManager.php');
$urlm = new UrlManager;
$GLOBALS['UrlManager'] = $urlm;
$urlm->render();
?>